<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改景点')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-sceneryspot-edit" th:object="${sceneryspot}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">景点名字：</label>
                <div class="col-sm-8">
                    <input name="sceneryspotName" th:field="*{sceneryspotName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">景点缩略图：</label>
                <div class="col-sm-8">
                    <input name="sceneryspotImgurl" th:field="*{sceneryspotImgurl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">景点介绍：</label>
                <div class="col-sm-8">
                    <input name="sceneryspotIntroduce" th:field="*{sceneryspotIntroduce}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">景点标题：</label>
                <div class="col-sm-8">
                    <input name="sceneryspotTitle" th:field="*{sceneryspotTitle}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">景点小提示：</label>
                <div class="col-sm-8">
                    <input name="sceneryspotTips" th:field="*{sceneryspotTips}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">景点钱数：</label>
                <div class="col-sm-8">
                    <input name="sceneryspotMoney" th:field="*{sceneryspotMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">景点排名：</label>
                <div class="col-sm-8">
                    <input name="rankingnum" th:field="*{rankingnum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">景点评分：</label>
                <div class="col-sm-8">
                    <input name="sceneryspotGrade" th:field="*{sceneryspotGrade}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">景点经度：</label>
                <div class="col-sm-8">
                    <input name="sceneryspotLongitude" th:field="*{sceneryspotLongitude}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">景点纬度：</label>
                <div class="col-sm-8">
                    <input name="sceneryspotLatitude" th:field="*{sceneryspotLatitude}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/sceneryspot";
        $("#form-sceneryspot-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-sceneryspot-edit').serialize());
            }
        }
    </script>
</body>
</html>